<?php
class SettingsController extends admin_controllers_Controller
{
	public function indexAction()
	{
		$form = new admin_core_Settings_Form_Password();

		$request = $this->getRequest();

		if ($request->isPost()) {
			$data = $request->getPost();

			if ($form->isValid($data)) {
				$form->save($data);

				echo 'saved';
			}
		}

		$this->view->form = $form;
	}
}